#include "tracConfigFrame.h"
#include "tracConfigPanel.h"
#include "tracConfigAbout.h"

BEGIN_EVENT_TABLE( tracConfigFrame, MainFrame )
	EVT_MENU( ID_FILE_EXIT, tracConfigFrame::OnExit )
	EVT_MENU( ID_HELP_ABOUT, tracConfigFrame::OnAbout )
END_EVENT_TABLE()

tracConfigFrame::tracConfigFrame( wxWindow *parent, int id )
	: MainFrame( parent, id )
{
	wxBoxSizer* sizer = new wxBoxSizer( wxVERTICAL );
	wxPanel* panel = new tracPackPanel( this );
	sizer->Add( panel, 1, wxEXPAND );
	wxSize panelSize = panel->GetSize();
	this->SetSizerAndFit( sizer );
	this->SetClientSize( panelSize );
}

void tracConfigFrame::OnExit( wxCommandEvent& event )
{
	Close();
}

void tracConfigFrame::OnAbout( wxCommandEvent& event )
{
	tracPackAbout* about = new tracPackAbout( this );
	about->Show();
}

tracConfigFrame::~tracConfigFrame()
{
}
